

cc.FrameNode = cc.Node.extend({
	
	_FrameBkg:null,
	_Frames:[],
	
	init:function () {
		
		var tmp = cc.CustomSprite.create("res/frame.png");
		this.addChild(tmp);
		this._FrameBkg = tmp;
		
		var i=0;
		// frame 1  								// 71x98  to  170x42    (H=261)
		tmp = cc.MaskNode.create(100,56);
		tmp.setPosition( cc.p(71,163) );
		this.addChild(tmp);
		this._Frames[i] = tmp;
		this._Frames[i].activeDebugDraw(true);
		i++;
		

		// frame 2									// 150x228  to  236x129    (H=261)
		tmp = cc.MaskNode.create(87,99);
		tmp.setPosition( cc.p(150,33) );
		this.addChild(tmp);
		this._Frames[i] = tmp;
		this._Frames[i].activeDebugDraw(true);
		i++;
		
		
		// frame 3									// 197x97  to  236x13    (H=261)
		tmp = cc.MaskNode.create(39,84);
		tmp.setPosition( cc.p(197,164) );
		this.addChild(tmp);
		this._Frames[i] = tmp;
		this._Frames[i].activeDebugDraw(true);
		i++;
		
		// frame 4									// 265x185  to  431x74    (H=261)
		tmp = cc.MaskNode.create(167,111);
		tmp.setPosition( cc.p(265,76) );
		this.addChild(tmp);
		this._Frames[i] = tmp;
		this._Frames[i].activeDebugDraw(true);
		i++;
		
		
		return true;
	},


});

cc.FrameNode.create = function() {
    var _node = new cc.FrameNode();
	_node.init();
	return _node;
};